package com.example.ShoppingManagementSystem.service;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CustomerServiceFactory {
    @Getter
    private static CustomerService customerService;

    @Autowired
    public void setCustomerService(CustomerService customerService) {
        CustomerServiceFactory.customerService = customerService;
    }

}
